package com.xiaodu.springboot.logging;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author: dutianjie
 * @date: 2021/3/23
 * @version: v1.0.0
 * @description: 描述
 * @email: dutianjie@thunisoft.com
 **/
@SpringBootApplication
public class LoggingApplication {

    private static final Logger log = LoggerFactory.getLogger(LoggingApplication.class);


    public static void main(String[] args) {
        SpringApplication.run(LoggingApplication.class, args);

        // 进行日志输出
        log.trace("trace => {}", "springboot-logging");
        log.debug("debug => {}", "springbooot-logging");
        log.info("info => {}", "springboot-logging");
        log.warn("warn => {}", "springboot-logging");
        log.error("error => {}", "springboot-logging");

    }


}
